// 项目的所有commit提交
import Cookies from 'js-cookie'

const mutations = {
  changeCollapse: (state,Collapse) => {//侧边栏怎么伸缩
    state.isCollapse = Collapse
  },
  SET_ROLES: (state, roles) => {// 菜单
    state.roles = roles
  },
  SET_TOKEN: (state, token) => {// token
    state.token = token
  },
  set_userInfo: (state, token) => {// 用户信息
    state.userInfo = token
  },
  SET_ROUTES: (state, accessRoutes) => { // 路由
    state.routes = accessRoutes
  },
}

export default mutations